using UnityEngine;
using System.Collections;

public class Controller : MonoBehaviour {
	
	public static int carVelocity;
	public static float maxGrowthFactor;
	public static float growthTime;	
	public static float fireLaunchRate;
	public static float rampLaunchRate;
	public static float carLaunchRate;
	public static bool inGame;
	
	
	public static GameObject spawnedCar;
	
	// Use this for initialization
	void Start () {
		carVelocity = 5;
		maxGrowthFactor = .8f;
		growthTime = 3;
		fireLaunchRate = 2;
		rampLaunchRate = 4;
		carLaunchRate = 10;
	}
	
	public static void LevelUp ()
	{
		carVelocity = Controller.carVelocity + 4;
		rampLaunchRate -= rampLaunchRate * 0.1f;
		fireLaunchRate -= Controller.fireLaunchRate * 0.25f;
		carLaunchRate -= Controller.carLaunchRate * 0.1f;
	}
	
	public static void Load ()
	{
		Application.LoadLevel("NormanScene");
	}
}
